package com.platform.qujia.config;

import javax.annotation.PostConstruct;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 常量信息配置（包含支付、地址前缀等）
 * @author adminLiu
 *
 */
@Component
public class BasicInfo {

    /**
     * 随行付-支付地址前缀
     */
    @Value("${tianque.tianqueURL}")
    private String tianqueURLVal;
    
    /**
     * 随行付-私钥（合作方私钥 ）
     */
    @Value("${tianque.tradeReversePayPrivatekey}")
    private String tradeReversePayPrivatekey;

	//音响公钥
	@Value("${loudspeaker.privateKey}")
	private String loudspeakerPrivateKey;

	//音响url
	@Value("${loudspeaker.url}")
	private String loudspeakerUrl;

	//音响appId
	@Value("${loudspeaker.appId}")
	private String loudspeakerAppId;
    
    /**
     * 随行付-机构号(渠道号)
     */
    @Value("${tianque.tradeReversePayOrgid}")
    private String tradeReversePayOrgid;
    
    /**
     * 随行付-回调前缀
     */
    @Value("${domain.payName}")
    private String payNameURL;
    
//    /**
//     * 云化支付-支付地址前缀
//     */
//    @Value("${tianque.yunHuaURL}")
//    private String yunHuaURL;
//    
//    /**
//     * 云化支付-机构号(渠道号)
//     */
//    @Value("${tianque.tradeReversePayOrgid}")
//    private String tradeReversePayOrgid;
//    
//    /**
//     * 云化支付-回调前缀
//     */
//    @Value("${domain.payName}")
//    private String payNameURL;
    
    // 使用@PostConstruct注解用于静态变量赋值。
    @PostConstruct
    public void setBasic() {
    	TRADE_REVERSE_PAY_TIANQUEURL=this.tianqueURLVal;
    	TRADE_REVERSE_PAY_PRIVATEKEY=this.tradeReversePayPrivatekey;
    	TRADE_REVERSE_PAY_ORGID=this.tradeReversePayOrgid;
    	PAY_NAMEURL=this.payNameURL;
		LOUDSPEAKER_PRIVATE_KEY=this.loudspeakerPrivateKey;
		LOUDSPEAKER_URL=this.loudspeakerUrl;
		LOUDSPEAKER_APPID=this.loudspeakerAppId;
    }

	public static String  LOUDSPEAKER_PRIVATE_KEY;
	public static String  LOUDSPEAKER_URL;
	public static String  LOUDSPEAKER_APPID;


    /**================================随行付支付================================================*/
    
	/**
	 * 机构号(渠道号)
	 */
	public static String TRADE_REVERSE_PAY_ORGID;
//	public static final String TRADE_REVERSE_PAY_TEST_ORGID="92346959";
	/**
	 * 机构号(渠道号)正试环境
	 */
//	public static final String TRADE_REVERSE_PAY_ORGID="92346959";
	
	/**
	 * 随行付-被扫支付地址
	 */
	public static final String TRADE_REVERSE_PAY_REVERSESCANURL = "/order/reverseScan";
	
	/**
	 * 随行付-订单查询地址
	 */
	public static final String TRADE_REVERSE_PAY_TRADEQUERYURL = "/query/tradeQuery";
	
    /**
     * 随行付-私钥（合作方私钥 ）
     */
	public static String TRADE_REVERSE_PAY_PRIVATEKEY;
//	public static final String TRADE_REVERSE_PAY_PRIVATEKEY = "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCjpAs/ZC8J+rL0 \n" +
//            "vAFXvXmRCjga4pzLP5t/8TbmR3CeS3heYtw9ahE4gwkkqdwE9J7FoIUTkd9M/2v3 \n" +
//            "k6aO4zQjtPj42zw6yX0XaJJpTF2MTagKZ8g1Sk9tLOE+tDjbfb6KFXe424ia6YcR \n" +
//            "C6gPdtfYMp508PH7+2HyYJneNjouJruQePibiQQ4gCrP6/hvyzQHDXO4h5kUbNIC \n" +
//            "0gcf0OgDqX2VpcRZv0mp/eu/2aC6O1qbJUkIJKPOzRMzapUEYAmuKN+XrGiTRkFB \n" +
//            "WF2LGWTesKWqeqV1IgbnMxXV6IvgZbVMTZ12OR1TuCcyf1MI84ONQ1/7JVUBGbJc \n" +
//            "iEqRVlmXAgMBAAECggEAWXHbLAUoqP29P4Rb/4dzoVHCpP9k0Lut1VsVtP0rk3qR \n" +
//            "CpZi57bIPulw3/dwac0D0+YPl0jOk5mxfBvamJOb9kB/Lhc3brKfi2H/VUsGfyAb \n" +
//            "T8S2bFp326cCX3HG+kJbGcLuM77bhkFLMIf8jqdZB7VzY1woCKG5QfCHaiyd1Ic7 \n" +
//            "Qj2dwiVFwNkFrZGcwCnvgZdlt2UyPoKWIyOEicU4XDCTwGLcBlRKmSQrvn95q0hV \n" +
//            "8+p8dwJxOrmXYi39JVjDQLkfk/+EfHvlHoxuMGwHvpaVPMHzzLfwssBG8ZMIiYcP \n" +
//            "OaIEU8UdXtwYarRa56YIEyuM5dQ0kaF4tsQtTt8/EQKBgQDXyFoeeeJ0raLGncFY \n" +
//            "FuZHSY/osDLhA8mWsxRZ3O9FtvXfmFiKGOfBIb5R0DgksJ3bnt3cPeH8HtHb9W// \n" +
//            "zDTJAaiKEp6CYlZqjfZfbiZvdNFkADN3RvwblByT6WinveufjDB0NJ7GUkjcsa0f \n" +
//            "Je6iHnyHrzLfL/JYXL6Q5BR4gwKBgQDCI9iWlb6S0I0pYGFoopkIKEfK34v6V94S \n" +
//            "JmE36Et1Jw/OhW/mMDPm05SuOijWRwggYQbGhkM5nAlvurBWDLDNF0Q69J3liJ78 \n" +
//            "kt6iu4byMXhSAbL82cdu3xRv7h1l5VW0RJmjY/s1fSwP+33R+v7vzYNA2oZug7br \n" +
//            "0+5X2UaGXQKBgAU40gV+yZ4tPY008CLjmvsKqrLk4LZVUyGUf9+U2y2CufyJQUtG \n" +
//            "QwWHfYWZVmJ867UO6SuVS8zAKi/6hpVYKcbbhWqh/LgHDTRS7y1sCv4Tg6W544T1 \n" +
//            "cNByCycBNQkqLXOU/u8w/s6p2x2MJzZjwpylxDm8YazJCkJdLDdxbZVlAoGAO2x1 \n" +
//            "c0JKnu2vB6c0qa57YP/TWcmrMumKU8vjnhVAY4+dSv2VDsRaXqEMtXef4FbFqgOI \n" +
//            "62NVWGDmkoh2SSCBTYV9oP4XBpcW8wCRnQYBfEigJ5nVi4etf8ZQnyInZXUZEqCc \n" +
//            "1mJYFjtGLW4xSQCm4Afr0QISe+ldKDoqjkE3URECgYBZchQGPb8PY/GMnYp9uM+o \n" +
//            "syhX8y02dXjRMFc01JwxUGWhp/WzRsDfjv2YSLm/ZfWkV3piLhEXPU6U8zp8Kp7b \n" +
//            "utH1e8atjs9Vw2LqDYMHWFfBpIvLg1zvRNvS5smpkBIlhxupWUumLfgaSNGbYCbL \n" +
//            "pZ6z8qNgOrK3LV9kfHuBzg== ";

	/**
	 * 随行付-测试-支付地址前缀
	 */
//	public static final String TRADE_REVERSE_PAY_TEST_TIANQUEURL="https://openapi-test.tianquetech.com";
//	public static String TRADE_REVERSE_PAY_TEST_TIANQUEURL="https://openapi.tianquetech.com";
	/**
	 * 随行付-正试-支付地址前缀
	 */
//	public static final String TRADE_REVERSE_PAY_TIANQUEURL="https://openapi.tianquetech.com";
	
    /**
	 * 随行付-支付地址前缀
	 */
	public static String TRADE_REVERSE_PAY_TIANQUEURL;
	
	/**
	 * 随行付-回调测试地址
	 */
//	public static final String TRADE_REVERSE_PAY_TEST_NOTIFYURL="https://yftx-map-test.xailife.com/apipay/notify/tradeReverseScanPayNotify";
//	public static final String TRADE_REVERSE_PAY_TEST_NOTIFYURL="/apipay/notify/tradeReverseScanPayNotify";
	
	/**
	 * 随行付-回调地址
	 */
	public static final String TRADE_REVERSE_PAY_NOTIFYURL="/apipay/notify/tradeReverseScanPayNotify";
	
	/**
	 * 回调前缀
	 */
	public static String PAY_NAMEURL;
	
	/**================================随行付支付================================================*/
	
	/**================================云化支付================================================*/
	
	
	
	
	/**================================云化支付================================================*/
}
